package com.story.modular.app.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.story.common.persistence.model.VedioDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author yangbo
 * @since 2019-08-05
 */
public interface ChannelItemDao {

    /**
     * 解绑频道与音频的关系
     * @param channelIdList
     */
    void batchUnbindRelationByChannelId(@Param("channelIdList") List<Integer> channelIdList);

    /**
     * 频道音频资源列表
     * @param page
     * @param keyword
     * @param orderByField
     * @param isAsc
     * @return
     */
    List<Map<String,Object>> getChannelRadioList(@Param("page") Page<VedioDetail> page,
                                                 @Param("keyword") String keyword,
                                                 @Param("orderByField") String orderByField,
                                                 @Param("isAsc") boolean isAsc);

}